package com.atguigu.srb.core.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
@Data
@ConfigurationProperties(prefix = "wx.open")
public class WxLoginProperties {
    String appId;
    String redirectUri;
    String appSecret;
    public static String APP_ID;
    public static String REDIRECT_URI;
    public static String APP_SECRET;
    @PostConstruct
    public void init(){
        APP_ID = this.appId;
        APP_SECRET = this.appSecret;
        REDIRECT_URI = this.redirectUri;
    }
}
